package com.zxx.pattern.commandPattern.command_Z;

/**
 * @author zxx on 2021/3/4
 */
public class TestClient {

    public static void main(String[] args) {
        Stock stock = new Stock();
        StockBuy stockBuy = new StockBuy(stock);
        StockSell stockSell = new StockSell(stock);

        Broker broker = new Broker();
        broker.takeOrder(stockBuy);
        broker.takeOrder(stockSell);

        broker.placeOrders();
    }

}
